package wechat

import (
	"code.gitea.io/gitea/modules/web"
	wechat_official_account_routers "code.gitea.io/gitea/routers/api/wechat/official_account"
	gitea_web_context "code.gitea.io/gitea/services/context"
)

/*
 * 注册微信
 *    前缀 "/api/wechat"
 */
func InitWechatRoutes() *web.Router {

	wechatWebRouter := web.NewRouter()
	wechatWebRouter.Use(gitea_web_context.APIContexter())

	wechatWebRouter.Mount("/official-account", wechat_official_account_routers.InitWechatOfficialAccountRoutes())

	return wechatWebRouter
}
